package com.huluobo.a2202mvvm_im_douyindemo.contact;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.a2202mvvm_im_douyindemo.mvvmBase.BaseViewModel;

import java.util.List;

/**
 * Created by LC on 2024/4/25.
 */
public class ContactViewModel extends BaseViewModel<ContactRepo> {
    MutableLiveData<List<ContactListItemBean>> getAllContactsSuccess = new MutableLiveData<>();
    MutableLiveData<String> getAllContactsFailed = new MutableLiveData<>();

    public void getAllContacts() {
        repo.getAllContacts(getAllContactsSuccess, getAllContactsFailed);
    }

    @Override
    protected ContactRepo createRepo() {
        return new ContactRepo();
    }
}
